local thbattle__qiurangzi_qiuji = fk.CreateSkill {

  name = "thbattle__qiurangzi_qiuji",

  tags = {  },

}



thbattle__qiurangzi_qiuji:addEffect("active", {
  prompt = "#thbattle__qiurangzi_qiuji",
  anim_type = "drawcard",
  max_phase_use_time = 1,
  card_num = 2,
  card_filter =function (self, player, to_select, selected)
     return #selected < 2 and Fk:getCardById(to_select).color == Card.Red and
        not player:prohibitDiscard(Fk:getCardById(to_select))
  end,
  target_filter = Util.FalseFunc,
  can_use = function(self, player, card, extra_data)
    return not player:isNude() and #player:getCardIds("he") >= 2 and
        player:usedSkillTimes(thbattle__qiurangzi_qiuji.name, Player.HistoryPhase) == 0
  end,
  on_use = function(self, room, effect)
    local player = effect.from
    local cards = Fk:cloneCard("wugufengdeng__amazing_grace")
    cards.skillName = thbattle__qiurangzi_qiuji.name
    cards:addSubcards(effect.cards)
    room:useCard({
      from = player,
      tos = room.alive_players,
      card = cards,
    })
  end,
})

return thbattle__qiurangzi_qiuji